package com.java.yz.day06.ketang;

//需求2：体育彩票（仅供上课案例使用，不参与线下赌博）
//前区：5个数字 1-35
//后区：2个数字 1-12

public class RandomDemo2 {
    public static void main(String[] args) {
        for (int n = 0; n < 5; n++) {
            System.out.println("==============第"+n+"次开奖=============");
            System.out.print("前区：");
            for (int i = 0; i < 5; i++) {
                int num1=(int)(35*Math.random()+1);
                System.out.print(num1+"\t");
            }
            System.out.println();
            System.out.print("后区：");
            for (int i = 0; i < 2; i++) {
                int num2=(int)(12*Math.random()+1);
                System.out.print(num2+"\t");
            }
            System.out.println();
        }
        System.out.println("==============================");
    }
}
